<section id="content">

    <div class="page page-fullwidth-layout">

        <div class="pageheader">

            <div class="page-bar">

                <ul class="page-breadcrumb">
                    <li>
                        <a href="{:url('/admin')}"><i class="fa fa-home"></i> 起始页</a>
                    </li>
                    <li>
                        拍品详情
                    </li>
                </ul>
            </div>
        </div>
        <div>
            <div class="left khpp_panel_l ">
                <div class="khpp_userinfo">
                    <img src="{$owngoods[0]['head_pic']}" />
                    <div class="left">
                        <img src="__PUBLIC__/images/timeLevelIcon.png" /> </div>
                    <div class="left">
                        <span>V{$owngoods[0]['user_level']} </span>
                    </div>
                    <div class="clear"></div>
                    <div class="phone">{$owngoods[0]['nickname']} {$owngoods[0]['mobile']}</div>
                </div>
            </div>
            <div class="left khpp_panel_r">
                {volist name='owngoods' id='list' k='key'}
                <div class="khpp_content">
                    <div class="title">{$list.goods_name}</div>
                    <div class="desc">{$list.goods_content}</div>
                    <div class="imgList">
                        {volist name="list['goods_images']" id='val'}
                        <div>
                            <img src="{$val.image_url}" />
                        </div>
                        {/volist}

                    </div>
                    <div class="extrDes clear">
                        <div class="left">
                            <img src="__PUBLIC__/images/freePost.png" />
                            <img src="__PUBLIC__/images/freeReturn.png" />
                            <img src="__PUBLIC__/images/baozhengjin.png" /> </div>
                        <div class="right"> {$list.click_count}
                            <img src="__PUBLIC__/images/review.png" /> 0
                            <img src="__PUBLIC__/images/like_01.png" />
                            <!-- <img src="assets/img/like_02.png" /> -->
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="likeBox"></div>

                    <div class="bidbuttons0 "><p class="endtime showtime" value="{$list.endTime}"></p></div>
                    <div class="moneyInfo">
                        <div>
                            <img src="__PUBLIC__/images/qjb_03.png" />{$list.start_price}</div>
                        <div>
                            <img src="__PUBLIC__/images/qjb_021_02.png" />{$list.every_add_price}</div>
                        <div>
                            <img src="__PUBLIC__/images/qjb_02.png" />{$list.protect_price}</div>
                    </div>
                    <div class="seprateLine"></div>
                </div>
                {/volist}

            </div>
            <div class="clear"></div>
        </div>

    </div>
    <script type="text/javascript">
        $('.tuihui').click(function(){
            history.go(-1);

        });

        var time_current = (new Date()).valueOf(); //获取当前时间
        $(function() {
            var dateTime = new Date();
            var difference = dateTime.getTime() - time_current;

            setInterval(function() {
                    $(".endtime").each(function() {
                        var obj = $(this);
                        var endTime = new Date(parseInt(obj.attr('value')) * 1000);
                        var nowTime = new Date();
                        var nMS = endTime.getTime() - nowTime.getTime() + difference;
                        var myD = Math.floor(nMS / (1000 * 60 * 60 * 24));
                        var myH = Math.floor(nMS / (1000 * 60 * 60)) % 24;
                        var myM = Math.floor(nMS / (1000 * 60)) % 60;
                        var myS = Math.floor(nMS / 1000) % 60;
                        var myMS = Math.floor(nMS / 100) % 10;
                        if (myD >= 0) {
                            var str = myD + "天" + myH + "小时" + myM + "分" + myS + "." + myMS + "秒";
                        } else {
                            var str = "已结束！";
                        }
                        obj.html(str);
                    });
                },
                100);
        });

    </script>

</section>
<!--/ CONTENT -->